package com.gs.netty.client.annotation;


import com.gs.netty.client.config.WebSocketClientAutoConfiguration;
import com.gs.netty.client.scanner.WebSocketClientScannerRegistrar;
import com.gs.netty.support.annotation.EnableWebSocketDispatch;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableWebSocketDispatch
@ImportAutoConfiguration({WebSocketClientAutoConfiguration.class})
@Import(WebSocketClientScannerRegistrar.class)
public @interface EnableWebSocketClients {

    String[] value() default {};

    String[] basePackages() default {};

    Class<?>[] clients() default {};
}
